﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using JasRibbonApplicatie.Model;

namespace JasRibbonApplicatie
{
    public partial class ToebehorenType
    {
        private static MateriaalModel mm = new MateriaalModel();
        public int AantalBeschikbaar
        {
            get
            {
                return toebehoren.Count();
            }
        }
        public int AantalDefect
        {
            get
            {
                return toebehoren.Where(t => t.defect).Count();
            }
        }
    }
}
